package main

import "fmt"

//万能数据类型| interface:类型断言与万能接口
func myFync(arg interface{}) {
	fmt.Println(arg)

	//类型断言
	value, ok := arg.(string)
	fmt.Println(value == "", ok)
}

type Book struct {
	auth string
}

func main() {
	book := Book{"Goland"}
	myFync(book)
	myFync("str")
}
